package com.lplb.api.admin.model.dto;

import com.lplb.common.core.model.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 系统用户表DTO 请求入参
 * </p>
 *
 * @author ws
 * @date 2020-07-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AdminUserDTO对象", description="系统用户表")
public class AdminUserDTO extends BaseDTO{

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "账号")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "是否禁用 (0-正常 (默认)  1-禁用)")
    private Integer state;

    @ApiModelProperty(value = "性别( 0- 未知 (默认)  1-男  2-女)")
    private Integer gender;

    @ApiModelProperty(value = "用户名/姓名")
    private String fullName;

    @ApiModelProperty(value = "头像url")
    private String headUrl;

    @ApiModelProperty(value = "年龄 (限制3位数)")
    private Integer age;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "首次注册时间")
    private LocalDateTime regTime;

    @ApiModelProperty(value = "最后登录时间")
    private LocalDateTime entTime;

}
